#!/bin/sh
gnuplot << EOF
set terminal postscript enhanced color "Helvetica" 16
set output "$1.eps"
set auto x
set auto y 
set logscale y
#set yrange [0:1.1]
set style fill pattern
set style data histogram
set style histogram clustered
#set style histogram cluster gap 1
set style fill solid border -1
set key left top
#set boxwidth 1.5
set grid y
set bmargin 4
set ylabel "$2 decoding block error rate" font "Helvetica,20"
set xlabel "Scrubbing period (h)" font "Helvetica, 20"
plot '$1.dat' using 2:xtic(1) ti col fs solid, '' u 3 ti col fs solid

